package com.coo1.onlineorder.server.data;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import javax.jdo.annotations.EmbeddedOnly;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NullValue;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class MSTCOURSE implements java.io.Serializable{
	
    @PrimaryKey
    @Persistent
    private String COURSEID;
    
    @Persistent
    private String COURSENAMECN;
    
    @Persistent
    private String COURSENAMEJP;
    
    @Persistent
    private String COURSENAMEEN;
    
    @Persistent
    private String COURSENAMEDETAIL;

    @Persistent
    private int PRICE;
    
    @Persistent
    private List<String> ITEMID;
    
    @Persistent
    private List<String> ITEMIDFIX;
    
    public MSTCOURSE(String courseid, int price, String uid,
    		Date orderdate, List<String> itemid,List<String> itemidfix,
    		String coursenamecn, String coursenamejp, String coursenameen,
    		String coursedetail) {
        this.COURSEID = courseid;
        this.PRICE = price;
        this.ITEMID = itemid;
        this.ITEMIDFIX = itemidfix;
        this.setCOURSENAMECN(coursenamecn);
        this.setCOURSENAMEJP(coursenamejp);
        this.setCOURSENAMEEN(coursenameen);
        this.setCOURSENAMEDETAIL(coursedetail);
    }

    // Accessors for the fields.  JDO doesn't use these, but your application does.

    public String getCourseId() {
        return COURSEID;
    } 
    
    public void setCourseId(String courseid) {
    	this.COURSEID = courseid;
    } 
    
    public int getPrice() {
        return PRICE;
    } 
    
    public void setPrice(int price) {
    	this.PRICE = price;
    } 
    
    public List<String> getItemid() {
        return ITEMID;
    } 
    
    public void setItemid(List<String> itemid) {
    	this.ITEMID = itemid;
    }

	public void setITEMIDFIX(List<String> iTEMIDFIX) {
		ITEMIDFIX = iTEMIDFIX;
	}

	public List<String> getITEMIDFIX() {
		return ITEMIDFIX;
	}

	public void setCOURSENAMECN(String cOURSENAMECN) {
		COURSENAMECN = cOURSENAMECN;
	}

	public String getCOURSENAMECN() {
		return COURSENAMECN;
	}

	public void setCOURSENAMEJP(String cOURSENAMEJP) {
		COURSENAMEJP = cOURSENAMEJP;
	}

	public String getCOURSENAMEJP() {
		return COURSENAMEJP;
	}

	public void setCOURSENAMEEN(String cOURSENAMEEN) {
		COURSENAMEEN = cOURSENAMEEN;
	}

	public String getCOURSENAMEEN() {
		return COURSENAMEEN;
	}

	public void setCOURSENAMEDETAIL(String cOURSENAMEDETAIL) {
		COURSENAMEDETAIL = cOURSENAMEDETAIL;
	}

	public String getCOURSENAMEDETAIL() {
		return COURSENAMEDETAIL;
	} 
}